<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/tag/sys" prefix="sys"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<sys:baseUrl/>" />
<link rel="Stylesheet" href="style/common.css" />
<link rel="stylesheet" href="style/floatDiv.css" type="text/css" />
<link rel="stylesheet" href="style/list.css" type="text/css" />
<script type="text/javascript" src="js/floatDiv.js"></script>
<script type="text/javascript" src="js/goodList.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Goods List</title>
</head>
<body>
	<div class="input_area" style="width: 700px">
		<form action="info/goods/list" method="post">
			品名<input name="name" />&nbsp; 编号<input name="id" />&nbsp; <input
				type="submit" value="查找商品" />
		</form>
		<br />
		<table width="100%">
			<tr>
				<th>编号</th>
				<th>品名</th>
				<th>单价</th>
				<th>操作</th>
			</tr>
			<c:forEach var="g" items="${goods}" varStatus="status">
				<tr <c:if test="${status.index%2==1}">class="even"</c:if>>
					<td>${g.id }</td>
					<td>${g.goodsname }</td>
					<td>${g.price }</td>
					<td>
						<a href="javascript:void(0)" onclick="show_detail('${g.id }')">[详情]</a>&nbsp;
						<a href="javascript:void(0)" onclick='top.newTab("修改商品信息--${g.goodsname }","info/goods/update?id=${g.id }")'>[修改]</a>&nbsp;
						<a href="javascript:void(0)" onclick="delete_confirm('${g.goodsname }','${g.id }')">[删除]</a>
					</td>
				</tr>
			</c:forEach>
		</table>
	</div>
	<div id='detail_view' class="floatDiv">
		<iframe id='detail_frame' src="null.html" height="200px" width="545px" frameborder="0"></iframe>
		<center><a href="javascript:closeDiv('detail_view')">[关闭]</a></center>
	</div>
	<div id='delete_confirm' class="floatDiv">
		<div id="delete_title">确认删除</div>
		<h4 id="delete_tip"></h4>
		<center>
		<a href="javascript:void(0)" id="delete_confirmed">[删除]</a>&nbsp;
		<a href="javascript:void(0)" onclick="closeDiv('delete_confirm')">[取消]</a>
		</center>
	</div>
	<div id='delete_result' class="floatDiv">
		<iframe id='delete_result_frame' src="null.html" height="30px" width="395px" frameborder="0"></iframe>
		<center><a href="javascript:delete_done();">[关闭]</a></center>
	</div>
</body>
</html>